Trivial: Silence a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2011 11:56:13 +0000 (07:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2011 11:56:13 +0000 (07:56 -0400)
tests/prop-editor.c

index df983dc52e9aa563884f4fb688869f25a9851e68..bde45c4708ce35a1ce62b47a64047a244d21ff6d 100644 (file)
@@ -902,10 +902,10 @@ property_widget (GObject    *object,
 
       label = gtk_label_new ("");
       button = gtk_button_new_with_label ("Properties");
-      g_object_set_data (G_OBJECT (button), "property-name", spec->name);
-      g_signal_connect (button, "clicked", 
-                       G_CALLBACK (object_properties), 
-                       object);
+      g_object_set_data (G_OBJECT (button), "property-name", (gpointer) spec->name);
+      g_signal_connect (button, "clicked",
+                        G_CALLBACK (object_properties),
+                        object);
 
       gtk_container_add (GTK_CONTAINER (prop_edit), label);
       gtk_container_add (GTK_CONTAINER (prop_edit), button);